import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '栅格拖拽布局',
      component: () => import('@/views/vue-grid-layout/index.vue')
    },
    {
      path: '/baidu',
      name: '百度地图组件',
      component: () => import('@/components/baiduV3/index.vue')
    },
    {
      path: '/iframe',
      name: 'iframe通信',
      component: () => import('@/views/baiduV3/prview.vue')
    },
    {
      path: '/baiduCont',
      name: '百度地图控制',
      component: () => import('@/views/baiduV3/index.vue')
    },
    {
      path: '/codeEditor',
      name: '代码编辑器',
      component: () => import('@/components/codeEditorV3/MonacoEditor.vue')
    },
  ]
})

export default router
